package com.dilidili.service.impl;

import java.util.List;
import java.util.Map;

import com.dilidili.mapper.VideoTagMapper;
import com.dilidili.service.IVideoTagService;
import com.domain.VideoTag;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-31
 */
@Service
public class VideoTagServiceImpl implements IVideoTagService
{
    @Resource
    private VideoTagMapper videoTagMapper;

    @Override
    public List<Map> selectVideoTagfindAll() {
        return  videoTagMapper.selectVideoTagfindAll();
    }

    /**
     * 查询【请填写功能名称】
     * 
     * @param videoTagId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public VideoTag selectVideoTagByVideoTagId(Long videoTagId)
    {
        return videoTagMapper.selectVideoTagByVideoTagId(videoTagId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param videoTag 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<VideoTag> selectVideoTagList(VideoTag videoTag)
    {
        return videoTagMapper.selectVideoTagList(videoTag);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param videoTag 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertVideoTag(VideoTag videoTag)
    {
        return videoTagMapper.insertVideoTag(videoTag);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param videoTag 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateVideoTag(VideoTag videoTag)
    {
        return videoTagMapper.updateVideoTag(videoTag);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param videoTagIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVideoTagByVideoTagIds(Long[] videoTagIds)
    {
        return videoTagMapper.deleteVideoTagByVideoTagIds(videoTagIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param videoTagId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteVideoTagByVideoTagId(Long videoTagId)
    {
        return videoTagMapper.deleteVideoTagByVideoTagId(videoTagId);
    }

    @Override
    public List<Map> selectVideoTagFindAllByUIdAndVid(Integer uId, Integer vId) {
        return videoTagMapper.selectVideoTagFindAllByUIdAndVid(uId,vId);
    }
}
